package com.mspbots.common.client;


import org.springframework.cloud.client.loadbalancer.reactive.ReactorLoadBalancerExchangeFilterFunction;
import org.springframework.stereotype.Service;
import org.springframework.web.reactive.function.client.WebClient;

/**
 * com.mspbots.web.CoreClient
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2019/8/26
 */
@Service
public class ScriptClient extends AbstractClient {

    public ScriptClient(WebClient.Builder builder,
                        ReactorLoadBalancerExchangeFilterFunction lbFunction) {
        super(builder.baseUrl("http://mspbots-script")
                .filter(lbFunction)
                .build());
    }

}
